<template>
  <div>
    <div class="main-table">
      <el-tabs v-model="rfiAdd" @tab-click="handleClick">
        <el-tab-pane label="基本信息" name="first">
          <rfiBaseDetail></rfiBaseDetail>
        </el-tab-pane>
        <el-tab-pane label="指定反馈资料" name="second">
          <rfiItemDetail></rfiItemDetail>
        </el-tab-pane>
        <el-tab-pane label="供应商" name="thirdly">
          <rfiVendor></rfiVendor>
        </el-tab-pane>
      </el-tabs>   
    </div>
  </div>
</template>
<script>
  import RfiBaseDetail from './rfiBaseDetail.vue'
  import RfiItemDetail from './rfiItemDetail.vue'
  import RfiVendor from './rfiVendor.vue'
  export default {
    components: {
      RfiBaseDetail,
      RfiItemDetail,
      RfiVendor
    },    
    data() {
      return {
        rfiAdd: 'first'
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  };
</script>